const garbage = {
  state: {
    userName: 'null',
    userPassword: '',
    userAge: '-1',
    userImg: '',
    userSex: '男',
    userPhone: '',
    userId: 1,
    userIntergration: '0',
    userSessionId: '',
    scanList: [],
    scanimg: ''
  },
  mutations: {
    'SET_USER_NAME': (state, name) => {
      state.userName = name
    },
    'SET_USER_PASSWORD': (state, password) => {
      state.userPassword = password
    },
    'SET_USER_AGE': (state, age) => {
      state.userAge = age
    },
    'SET_USER_SEX': (state, sex) => {
      state.userSex = sex
    },
    'SET_USER_IMG': (state, img) => {
      state.userImg = img
    },
    'SET_USER_PHONE': (state, phone) => {
      state.userPhone = phone
    },
    'SET_USER_ID': (state, id) => {
      state.userId = id
    },
    'SET_USER_INTERGRATION': (state, intergration) => {
      state.userIntergration = intergration
    },
    'SET_USER_SESSSIONID': (state, sessionId) => {
      state.userSessionId = sessionId
    },
    'SET_SCAN_LIST': (state, scanList) => {
      state.scanList = scanList
    },
    'SET_SCAN_IMG': (state, scanImg) => {
      state.scanImg = scanImg
    }
  }
}

export default garbage
